Polymorphic Syntax Deenition
نویسنده
چکیده
Context-free grammars are used in several algebraic speciication formalisms instead of rst-order signatures for the deenition of the structure of algebras , because grammars provide better notation than signatures. The rigidity of these rst-order structures enforces a choice between strongly typed structures with little genericity or generic operations over untyped structures. In two-level signatures level 1 deenes the algebra of types used at level 0 providing the possibility to deene polymorphic abstract data types. Two-level grammars are the grammatical counterpart of two-level signatures. This paper discusses the correspondence between context-free grammars and rst-order signatures, the extension of this correspondence to two-level grammars and signatures, examples of the usage of two-level grammars for polymorphic syntax deenition, a restriction of the class of two-level grammars for which the parsing problem is decidable, a parsing algorithm that yields a minimal and nite set of most general parse trees for this class of grammars, and a proof of its correctness.
منابع مشابه
Polymorphic Syntax Definition
Context-free grammars can be used in algebraic speciication instead of rst-order signatures to deene the structure of algebras. The rigidity of these rst-order structures enforces a choice between strongly typed structures with little gener-icity or generic operations over untyped structures. Two-level signatures provide a better balance between genericity and typing. Two-level grammars are the...
متن کاملHigher-dimensional syntax
The aim of this paper is to present the notion of higher-dimensional syntax, which is a hierarchy of languages. Each term of a n-dimensional language will be typed by terms of the underlying n ? 1-dimensional language. This is an application of the emerging higher-dimensional category notions. On the lower dimensions live notions of syntax which are already known. So dimension zero corresponds ...
متن کاملPolymorphic Abstract Syntax via Grothendieck Construction
Abstract syntax with variable binding is known to be characterised as an initial algebra in a presheaf category. This paper extends it to the case of polymorphic typed abstract syntax with binding. We consider two variations, secondorder and higher-order polymorphic syntax. The central idea is to apply Fiore’s initial algebra characterisation of typed abstract syntax with binding repeatedly, i....
متن کاملTowards a Visual Programming Environment Generator for Algebraic Specifications
In the visual languages community there has been a growing consensus that visual languages will be most successful in the case of special purpose languages. Furthermore, their success will largely depend on the programming environment which is provided for them. Programming environment generators, generate programming environments for formally speciied languages. This paper discusses speciicati...
متن کاملA Flexible Motif Search Technique Based on Generalized Prooles
Draft Copy|January 24, 1996|Do not circulate. 0 abstract A exible motif search technique is presented which has two major components: 1. a generalized proole syntax serving as a motif deenition language 2. a motif search method speciically adapted to the problem of nding multiple instances of a motif in the same sequence. The new proole structure, which is the core of the generalized proole syn...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1997